@media print {
  body, page {
    /*margin: auto;*/
    /*box-shadow: 0 0 0;*/
    margin: 0 auto;
    margin-bottom: 0cm;
    box-shadow: 0 0 0;
    background: white;
  }
  page {page-break-after: always;}
}

@media screen {
  body {
    background: rgb(204,204,204);
  }
  page {
    background: white;
    display: block;
    margin: 0 auto;
    padding: 0cm;
    margin-bottom: 0.5cm;
    box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
  }
}

@page orientation-portrait {
    size: portrait;
}

@page orientation-landscape {
    size: landscape;
}

@font-face {
	font-family: 'Gotham';
	src: url('../fonts/GothamBook.ttf');
}

page[size="A6"] {
  width:10.5cm;
  height: 14.8cm;
}

page[size="A6"][layout="landscape"] {
  width: 14.8cm;
  height: 10.5cm;
}

page[size="A4"][layout="portrait"] {  
  width: 21cm;
  height: 29.7cm; 
  page: orientation-portrait;
}
page[size="A4"][layout="landscape"] {
  width: 29.7cm;
  height: 21cm;  
  page: orientation-landscape;
}
page[size="A3"] {
  width: 29.7cm;
  height: 42cm;
}
page[size="A3"][layout="landscape"] {
  width: 42cm;
  height: 29.7cm;  
}
page[size="A5"] {
  width: 14.8cm;
  height: 21cm;
}
page[size="A5"][layout="landscape"] {
  width: 21cm;
  height: 14.8cm;  
}

page[size="A7"] {
  width: 7.4cm;
  height: 10.5cm;
}

page[size="A7"][layout="landscape"] {
  width: 10.5cm;
  height: 7.4cm;
}

page[size="A5-gutter"] {
  width: 154mm;
  height: 216mm;
}


div {
  border: 1mm solid black;
  box-sizing: border-box;
  padding: 1mm;
  text-align: center;
  font: bold 14pt sans-serif;
}

page[show="flexo"] {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* ready reckoner */
.reckoner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(9, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  padding: 0mm;
  width: 210mm;
  height: 297mm;
  overflow: hidden;
}

.reckoner .smallline {
  font: normal 34pt sans-serif;
}

.reckoner .bigline {
  font: bold 46pt sans-serif;
}

.reckoner .breweryname { grid-area: 1 / 1 / 2 / 4;
			text-align: left;
			font-size: 38pt;
			height: 40mm;}
.reckoner .taste { grid-area: 1 / 4 / 2 / 5; 
			height: 40mm;
			font-size: 40pt;}
.reckoner .beername { grid-area: 2 / 1 / 3 / 5; 
			text-align: left;
			font-size: 44pt;
			height: 62mm;
			position: relative;}
.reckoner .loc {
		position: absolute;
		border: 0px;
		font-size: 16pt;
		bottom: 2mm;
		right: 4mm;
}

.reckoner .loc-human {
		position: absolute;
		border: 0px;
		font-size: 16pt;
		bottom: 2mm;
		left: 4mm;
}
/*.reckoner .clarity { grid-area: 3 / 1 / 4 / 2; }*/
.reckoner .style { grid-area: 3 / 1 / 4 / 3; }
.reckoner .glutenfree { grid-area: 3 / 3 / 4 / 4; }
.reckoner .vegan { grid-area: 3 / 4 / 4 / 5; }
.reckoner .spacer { grid-area: 4 / 1 / 5 / 2; }
.reckoner .titlethird { grid-area: 4 / 2 / 5 / 3; }
.reckoner .titlehalf { grid-area: 4 / 3 / 5 / 4; }
.reckoner .titlepint { grid-area: 4 / 4 / 5 / 5; }
.reckoner .x1 { grid-area: 5 / 1 / 6 / 2; }
.reckoner .x1third { grid-area: 5 / 2 / 6 / 3; }
.reckoner .x1half { grid-area: 5 / 3 / 6 / 4; }
.reckoner .x1pint { grid-area: 5 / 4 / 6 / 5; }
.reckoner .x2 { grid-area: 6 / 1 / 7 / 2; }
.reckoner .x2third { grid-area: 6 / 2 / 7 / 3; }
.reckoner .x2half { grid-area: 6 / 3 / 7 / 4; }
.reckoner .x2pint { grid-area: 6 / 4 / 7 / 5; }
.reckoner .x3 { grid-area: 7 / 1 / 8 / 2; }
.reckoner .x3third { grid-area: 7 / 2 / 8 / 3; }
.reckoner .x3half { grid-area: 7 / 3 / 8 / 4; }
.reckoner .x3pint { grid-area: 7 / 4 / 8 / 5; }
.reckoner .x4 { grid-area: 8 / 1 / 9 / 2; }
.reckoner .x4third { grid-area: 8 / 2 / 9 / 3; }
.reckoner .x4half { grid-area: 8 / 3 / 9 / 4; }
.reckoner .x4pint { grid-area: 8 / 4 / 9 / 5; }
.reckoner .allergens {grid-area: 9 / 1 / 10 / 5; 
			text-align: left;
			height: 34mm;}

/* cask ends */
.caskend {
	display: flex;
	flex-direction: column;
	text-align: center;
	padding: 0;
	overflow: hidden;
	width: 100%;
	height: 100%;
	border: 0 solid black;
	font: 24pt sans-serif;
}

.background {
	border: 1mm solid black;
	background-image: url("../BBCF-bg.png");
	/*background-image: url("../CAMRA-NI-2025-bg.png");*/
	/*background-image: url("../BBCFsmall-bg.png");*/
	background-size: 14cm;
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	height: 100%;
	background-color: white;
	position: relative;
}

.narrow {
	width: 160mm;
}

.landscape-narrow {
	width: 210mm;
}


div.soldout {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 0px;
	background-color: rgba(255, 255, 255, 0.5);
}

.caskend span {
	margin-top: auto;
}

.caskend .brewery-title {
	height: 7%;
}

.caskend .brewery-name {
	/*height: 23%;
	padding: 0cm 2cm 0cm 2cm;*/
	height: 30%;
	padding: 1.5cm 1.5cm 0cm 1.5cm;
	font: bold 48pt sans-serif;
	border-width: 0.5mm 0.5mm 0;
}

.caskend.brewery-name.portrait {
	padding: 2cm 1cm 0cm 1cm;
}

.caskend .address {
	font: 20pt sans-serif;
}

.caskend .beer-title {
	height: 7%;}

.caskend .beer-name {
	/*height: 33%;*/
	height: 40%;
	font: bold 64pt sans-serif;
	padding: 0cm 1.5cm 0cm 1.5cm;
	border-width: 0 0.5mm;
}

.caskend .cider-size {
	font: bold 96pt sans-serif;
}

.caskend.beer-name.portrait {
	font: bold 64pt sans-serif;
}

.caskend .beer-style {
	height: 10%;
	font: 40pt sans-serif;
	padding-bottom: 0.2cm;
	border-width: 0 0.5mm;
	position: relative;
}

.caskend.beer-style.portrait {
	height: 15%;
}

.pos {
	position: absolute;
	bottom: 2mm;
	right: 4mm;
	border: 0px;
	font-size: 16pt;
}

.pos-human {
	position: absolute;
	bottom: 2mm;
	left: 4mm;
	border: 0px;
	font-size: 16pt;
}

.caskend .infobox-wrapper {
	height: 20%;
	flex-direction: row;
}

.caskend.infobox-wrapper.portrait {
	height: 15%;
}

.caskend .singlebox {
	padding-top: 0.3cm;
	text-align: center;
	border: 0.5mm solid black;
	border-top: 1mm solid black;
}

.caskend .infobox-content {
	font: bold 48pt sans-serif;
	margin: auto;
}

.blackout {
	background: black;
}
/*
.crosshatch { 
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyNCcgaGVpZ2h0PScyNCc+CiAgPHJlY3Qgd2lkdGg9JzI0JyBoZWlnaHQ9JzI0JyBmaWxsPScjZmZmJy8+CiAgPHBhdGggZD0nTTAgMEwyNCAyNFpNMjQgMEwwIDI0Wicgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2U9JyMwMDAnLz4KPC9zdmc+Cg==");
	background-repeat: repeat;
} 
*/
.crosshatch {
	background: repeating-linear-gradient(
		  135deg,
		  #fff,
		  #fff 4mm,
		  #aaa 4mm,
		  #aaa 5mm);
}

